package fons.model.query.fun;


public class ConstantFun extends ReferenceFun {
	private final Function constant;
	
	public ConstantFun(String name, Function constant) {
		super(name);
		this.constant = constant;
	}
	
	@Override
	public Function setScope(Scope scope) {
		System.out.println("ConstantFun " + getName() + " = " + constant.toString() + " was added to a scope!");
		scope.set(getName(), constant);		
		return super.setScope(scope);
	}
}
